<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">

    <h:body>
        <ui:composition template="template.xhtml">
            <ui:define name="content">
                <h:panelGroup>
                    <h:form id="add">
                        <h:inputText value="#{kalenderPM.kalenderName}" id="kalenderName" />
                        <h:commandButton value="Hinzufügen" action="#{kalenderPM.addKalender}"/>
                    </h:form>
                </h:panelGroup>
              
                
              <h:form>  
                  <h:commandButton value="Logout" action="#{kalenderPM.logout()}" rendered="#{kalenderPM.loggedIn}"/>   
              </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>
